-
Notifications
You must be signed in to change notification settings - Fork 37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Test: Added PostUpgradeArb #1512
Conversation
b270e31
to
54e3b23
Compare
a1362ce
to
704155e
Compare
3466e60
to
0b061c5
Compare
704155e
to
0098380
Compare
0b061c5
to
16b7d39
Compare
0098380
to
7ec8bb8
Compare
16b7d39
to
654da5e
Compare
name: `init method`, | ||
test: async () => { | ||
const actor = getActor('./tests/post_upgrade_method/test'); | ||
const result = await actor.getPostDeployValues(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this needs to be redone. The init method tests should be completely separate from the post upgrade tests. These tests should be almost identical to the actual init method tests, using the same global variables. We do not want the global variables for testing init and post_upgrade to be the same, otherwise you don't have a guarantee that a deploy occurred.
|
||
runPropTests(CanisterArb(CanisterConfigArb)); | ||
|
||
function generateGetPostDeployValuesCanisterMethod( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this how we did the getInitValues in the init method test?
Builds off of #1492 to add PostUpgrade tests to our canister methods.
Caution
Change the base of this brach to
main
before merging.Closes #1497